package com.murray.assignment.pojo;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/3
 * @Time 20:05
 * 属性名的类
 */
public class AttrName {
    /**
     * 属性名id
     */
    private Integer attrNameId;
    /**
     * 属性名
     */
    private String attrName;

    /**
     * 属性名包含的属性值
     * 属性名中有多个属性值，所以使用集合
     */
    private List<AttrValue> attrValueList;

    @Override
    public String toString() {
        return "AttrName{" +
                "attrNameId=" + attrNameId +
                ", attrName='" + attrName + '\'' +
                ", attrValueList=" + attrValueList +
                '}';
    }

    public List<AttrValue> getAttrValueList() {
        return attrValueList;
    }

    public void setAttrValueList(List<AttrValue> attrValueList) {
        this.attrValueList = attrValueList;
    }

    public AttrName(Integer attrNameId, String attrName, List<AttrValue> attrValueList) {
        this.attrNameId = attrNameId;
        this.attrName = attrName;
        this.attrValueList = attrValueList;
    }

    public AttrName() {
    }

    public Integer getAttrNameId() {
        return attrNameId;
    }

    public void setAttrNameId(Integer attrNameId) {
        this.attrNameId = attrNameId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public AttrName(Integer attrNameId, String attrName) {
        this.attrNameId = attrNameId;
        this.attrName = attrName;
    }
}
